﻿using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using Dict.DataModel;

namespace Dict.Blo
{
    public class DictFishBlo
    {
        public static TableFishSkill GetFishSkillTable(string id)
        {
            return DictDataManager.Instance.tableFishSkillDao.GetById(id);
        }
        public static List<TableFishSkill> GetFishSkillList(string type)
        {
            return DictDataManager.Instance.tableFishSkillDao.GetByOneIndex(type);
        }

        public static int GetCookLevelExp(int level)
        {
            TableCookingMakeLevelup table = DictDataManager.Instance.tableCookingMakeLevelupDao.GetById(level);
            if (table != null)
                return table.exp;

            return -1;
        }
    }
}

